package com.producer.producerfeign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User: lixiao
 * Created Date: 2020/7/20 10:13
 */
@RestController
@RequestMapping(value = "/clientFeign")
public class clientFeifn {

    @Autowired
    Remote remote;



    @GetMapping(value = "/do")
    public String client(){
        return remote.data();
    }
}